<form class="layui-form" onsubmit="return false;">
    <input type="hidden" name="id" value="#(bean.id??)">
    <div class="main-container">
        <div class="layui-form-item layui-block">
            <label class="layui-form-label required">TOKEN</label>
            <div class="layui-input-block">
                <input type="text"value="#(bean.id??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-block">
            <label class="layui-form-label required">状态</label>
            <div class="layui-input-block">
                <select lay-verify="required">
                #DICTS(type="user_online_status")#for(item : dicts)
                    <option value="#(item.value)"#if(item.value == bean.status??) selected#end>#(item.label)</option>
                #end#end
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-block">
            <label class="layui-form-label required">登录账号</label>
            <div class="layui-input-inline">
                <input type="text" value="#(bean.nickname??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label required">部门名称</label>
            <div class="layui-input-inline">
                <input type="text" value="#(bean.deptName??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-block">
            <label class="layui-form-label required">IP地址</label>
            <div class="layui-input-inline">
                <input type="text" value="#(bean.ip??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label required">登录位置</label>
            <div class="layui-input-inline">
                <input type="text" value="#(bean.location??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-block">
            <label class="layui-form-label required">浏览器类型</label>
            <div class="layui-input-inline">
                <input type="text" value="#(bean.browser??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label required">操作系统</label>
            <div class="layui-input-inline">
                <input type="text" value="#(bean.os??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-block">
            <label class="layui-form-label required">创建时间</label>
            <div class="layui-input-inline">
                <input type="text" value="#date(bean.startDatetime??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label required">最后访问</label>
            <div class="layui-input-inline">
                <input type="text" value="#date(bean.activityDatetime??)" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="display: none;">
        <div class="layui-input-block">
            <button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="data-save" id="data-save">
                <i class="layui-icon layui-icon-ok"></i> 提交
            </button>
        </div>
    </div>
</form>
#include("/admin/_common/foot.html")
</script>
